
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>ELECTRONET :: Base Admin</title>
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">    
    
    <link href="http://jumpstartuidemo.com/themes/base/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://jumpstartuidemo.com/themes/base/css/bootstrap-responsive.min.css" rel="stylesheet">
    
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600" rel="stylesheet">
    <link href="http://jumpstartuidemo.com/themes/base/css/font-awesome.min.css" rel="stylesheet">
    
    <link href="http://jumpstartuidemo.com/themes/base/css/ui-lightness/jquery-ui-1.10.0.custom.min.css" rel="stylesheet">
    
    <link href="http://jumpstartuidemo.com/themes/base/css/base-admin-3.css" rel="stylesheet">
    <link href="http://jumpstartuidemo.com/themes/base/css/base-admin-3-responsive.css" rel="stylesheet">
    
    <link href="http://jumpstartuidemo.com/themes/base/css/pages/plans.css" rel="stylesheet"> 

    <link href="http://jumpstartuidemo.com/themes/base/css/custom.css" rel="stylesheet">

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

  </head>

<body>

<nav class="navbar navbar-inverse" role="navigation">

	<div class="container">
  <!-- Brand and toggle get grouped for better mobile display -->
  <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
      <span class="sr-only">Toggle navigation</span>
      <i class="icon-cog"></i>
    </button>
    <a class="navbar-brand" href="./index.html">ELECTRONET</a>
  </div>

  <!-- Collect the nav links, forms, and other content for toggling -->
  <div class="collapse navbar-collapse navbar-ex1-collapse">
    <ul class="nav navbar-nav navbar-right">
      <li class="dropdown">
						
			<a href="javscript:;" class="dropdown-toggle" data-toggle="dropdown">
				<i class="icon-cog"></i>
				Acciones
				<b class="caret"></b>
			</a>
			
			<ul class="dropdown-menu">
				<li><a href="#">Cambiar informacion</a></li>
				<li class="divider"></li>
				<li><a href="#">Salir</a></li>
			</ul>
			
		</li>

    </ul>
    
    <form class="navbar-form navbar-right" role="search">
      <div class="form-group">
        <input type="text" class="form-control input-sm search-query" placeholder="Search">
      </div>
    </form>
  </div><!-- /.navbar-collapse -->
</div> <!-- /.container -->
</nav>
    



    
<div class="subnavbar">

	<div class="subnavbar-inner">
	
		<div class="container">
			
			<a href="javascript:;" class="subnav-toggle" data-toggle="collapse" data-target=".subnav-collapse">
		      <span class="sr-only">Toggle navigation</span>
		      <i class="icon-reorder"></i>
		      
		    </a>

			<div class="collapse subnav-collapse">
				<ul class="mainnav">
				
					<li class="">
						<a href="./index.html">
							<i class="icon-home"></i>
							<span>Home</span>
						</a>	    				
					</li>
					
					<li class="dropdown active">					
						<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-th"></i>
							<span>Mantenimiento</span>
							<b class="caret"></b>
						</a>	    
					
						<ul class="dropdown-menu">
							<li><a href="#">Agregar usuario</a></li>
							<li><a href="#">Agregar categorias</a></li>
							<li><a href="#">Agregar sub categorias</a></li>
							<li><a href="#">Agregar productos</a></li>
						</ul> 				
					</li>
					
					
					
				
				</ul>
			</div> <!-- /.subnav-collapse -->

		</div> <!-- /container -->
	
	</div> <!-- /subnavbar-inner -->

</div> <!-- /subnavbar -->
    
    <form id="form1" name="form1" method="post" action="ListarVentasServlet" class="form-horizontal" role="form">
<div class="main">

    <div class="container">


      <div class="row">
      	
      	<div class="col-md-12">
      		
      		<div class="widget stacked">

      			<div class="widget-header">
					<i class="icon-ok"></i>
					<h3>Tus ventas:</h3>
				</div> <!-- /widget-header -->
				
				<div class="widget-content">
				<div class="form-group">
						    	<div class="col-lg-4"></div>

						    	<div class="col-lg-8">
						     
						      <label>
		    <input type="submit" class="btn btn-success" name="button" id="button" value="Mis ventas" />
		    </label>
						  </div>
						    </div>

						<fieldset>
						    <div class="alert alert-danger">Aun no tienes productos registradoss</div>
						<table id="avance" class="table table-hover table-bordered">
						    <tbody><tr class="active">
						        <td><strong>ITEM</strong></td>
						        <td><strong>PRODCUTO</strong></td>
						        <td><strong>DESCRIPCION</strong></td> 
						        <td><strong>STOCK</strong></td>
						    </tr>

						    <%@page import="java.util.*, electronet.modelo.Publicacion" %>
		<%
		Collection<Publicacion> arreglo = (ArrayList<Publicacion>)request.getAttribute("ventas");
		if(arreglo != null) { 
		int i = 1;
		for(Publicacion x : arreglo) {
		%>  
		  <tr>
		    <td><%=i++ %></td>
		    <td><% out.print(x.getTitulo()); %></td>		   
		    <td><% out.print(x.getDescripcion()); %></td>		    
		    <td><% out.print(x.getStock()); %></td>
	
	</tr>

	<% }
		  } %>
 							 </tbody>
					</table>

</fieldset>
					
				</div> <!-- /widget-content -->
					
			</div> <!-- /widget -->					
			
	    </div> <!-- /col-md-12 -->     	
      	
      	
      </div> <!-- /row -->


    </div> <!-- /container -->
    
</div> <!-- /main -->
<!--     </fieldset> -->
</form>
<fieldset>
<form id="form1" name="form1" method="post" action="ListarComprasServlet" class="form-horizontal" role="form">
<div class="main">

    <div class="container">


      <div class="row">
      	
      	<div class="col-md-12">
      		
      		<div class="widget stacked">

      			<div class="widget-header">
					<i class="icon-ok"></i>
					<h3>Tus ventas:</h3>
				</div> <!-- /widget-header -->
				
				<div class="widget-content">
				<div class="form-group">
						    	<div class="col-lg-4"></div>

						    	<div class="col-lg-8">
						     
						      <label>
		    <input type="submit" class="btn btn-success" name="button" id="button" value="Mis compras" />
		    </label>
						  </div>
						    </div>

						
						    <div class="alert alert-danger">Aun no tienes productos registradoss</div>
						<table id="avance" class="table table-hover table-bordered">
						    <tbody><tr class="active">
						        <td><strong>ITEM</strong></td>
						        <td><strong>COMPRA</strong></td>
						        <td><strong>DESCRIPCION</strong></td>
						        <td><strong>FECHA</strong></td>
						        <td><strong>STOCK</strong></td>
						    </tr>

						    <%@page import="java.util.*, electronet.modelo.CompraCabecera" %>
		<%
		Collection<CompraCabecera> compras = (ArrayList<CompraCabecera>)request.getAttribute("compras");
		if(compras != null) { 
		int i = 1;
		for(CompraCabecera x : compras) {
		%>  
		  <tr>
		    <td><%=i++ %></td>
		    <td><% out.print(x.getIdcompra()); %></td>
		    <td><% out.print(x.getIdcomprador()); %></td>
		    <td><% out.print(x.getFechacompra()); %></td>
		    <td><% out.print(x.getTotal()); %></td>
	</tr>

	<% }
		  } %>
 							 </tbody>
					</table>


				
				</div> <!-- /widget-content -->
					
			</div> <!-- /widget -->					
			
	    </div> <!-- /col-md-12 -->     	
      	
      	
      </div> <!-- /row -->


    </div> <!-- /container -->
    
</div> <!-- /main -->
    
</form>
</fieldset>	

<div class="extra">

	<div class="container">

		<div class="row">
			
			<div class="col-md-12">
                             EPEJAVA - Desarrollo web.
                        </div>
			
		</div> <!-- /row -->

	</div> <!-- /container -->

</div> <!-- /extra -->


    
    
<div class="footer">
		
	<div class="container">
		
		<div class="row">
			
			<div id="footer-copyright" class="col-md-6">
				&copy; 2013 Electronet.com. All rights reserved.
			</div> <!-- /span6 -->
			
			<div id="footer-terms" class="col-md-6">
				DESARROLLO WEB
			</div> <!-- /.span6 -->
			
		</div> <!-- /row -->
		
	</div> <!-- /container -->
	
</div> <!-- /footer -->
    

<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://jumpstartuidemo.com/themes/base/js/libs/jquery-1.9.1.min.js"></script>
<script src="http://jumpstartuidemo.com/themes/base/js/libs/jquery-ui-1.10.0.custom.min.js"></script>
<script src="http://jumpstartuidemo.com/themes/base/js/libs/bootstrap.min.js"></script>

<script src="http://jumpstartuidemo.com/themes/base/js/plugins/validate/jquery.validate.js"></script>

<script src="http://jumpstartuidemo.com/themes/base/js/Application.js"></script>
<script src="http://jumpstartuidemo.com/themes/base/js/demo/validation.js"></script>

<script>

$(function () {

	// Validate the form on load
	//$('#validation-form').submit ();

	// Block the form from submitting
	$('form').submit (function (e) {
	
	});

});

</script>

  </body>
</html>
